package org.larkdoc.model.entity;

import java.io.Serializable;

/**
 * 用户与角色关系实体(对应数据库表) 
 * 
 * @author  zhangpeijun[zhangpeijun1024@qq.com]
 * @version  [v1.0.1, 2017年10月17日]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
public class UserRelRole implements Serializable {
    /**
     * id
     * Column : user_rel_role.id
     *
     * @mbggenerated
     */
    private Integer           id;
    
    /**
     * 用户id-用户ID
     * Column : user_rel_role.user_id
     *
     * @mbggenerated
     */
    private Integer           userId;
    
    /**
     * 角色id-角色ID
     * Column : user_rel_role.role_id
     *
     * @mbggenerated
     */
    private Integer           roleId;
    
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table user_rel_role
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * Returns : id
     *
     * @return the value of user_rel_role.id
     *
     * @mbggenerated
     */
    public Integer getId() {
        return id;
    }
    
    /**
     * This method sets : id
     *
     * @param id the value for user_rel_role.id
     *
     * @mbggenerated
     */
    public void setId(Integer id) {
        this.id = id;
    }
    
    /**
     * Returns : 用户id-用户ID
     *
     * @return the value of user_rel_role.user_id
     *
     * @mbggenerated
     */
    public Integer getUserId() {
        return userId;
    }
    
    /**
     * This method sets : 用户id-用户ID
     *
     * @param userId the value for user_rel_role.user_id
     *
     * @mbggenerated
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    
    /**
     * Returns : 角色id-角色ID
     *
     * @return the value of user_rel_role.role_id
     *
     * @mbggenerated
     */
    public Integer getRoleId() {
        return roleId;
    }
    
    /**
     * This method sets : 角色id-角色ID
     *
     * @param roleId the value for user_rel_role.role_id
     *
     * @mbggenerated
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
    
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_rel_role
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", roleId=").append(roleId);
        sb.append("]");
        return sb.toString();
    }
}